# Contributor: Leo <thinkabit.ukim@gmail.com>
# Contributor: Christian Kampka <christian@kampka.net>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=po4a
pkgver=0.69
pkgrel=1
pkgdesc="Tools for helping translation of documentation"
url="https://po4a.org"
arch="noarch"
license="GPL-2.0-or-later"
options="!check" # test_requires missing: SGMLS and Unicode::GCString
depends="gettext perl perl-pod-parser perl-syntax-keyword-try"
makedepends="diffutils docbook-xsl perl-module-build"
subpackages="$pkgname-doc $pkgname-lang"
source="https://github.com/mquinson/po4a/releases/download/v$pkgver/po4a-$pkgver.tar.gz"

build() {
	perl Build.PL installdirs=vendor create_packlist=0
	perl Build
}

check() {
	perl Build test
}

package() {
	perl Build destdir=$pkgdir install
	# remove perllocal.pod and .packlist
	find $pkgdir \( -name .packlist -o -name perllocal.pod \) -delete
}

sha512sums="
9cb5eec547ab18d1c3ebdda212b909fc4f5489a74641ba2d7e0a3a1d060f245d23667c16e687c678c5ccc3809c9315d20673266dcc3764172a899caa397238e3  po4a-0.69.tar.gz
"
